package com.mcay.easyexcel.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.mcay.easyexcel.converters.CustomStringStringWriteConverter;
import lombok.Data;

/**
 * 街道实体
 * Created by  longHe
 * 2021/8/20 9:11
 */
@Data
public class Address {

    //天心区的街道
    @ExcelProperty(value = "天心区", index = 0, converter = CustomStringStringWriteConverter.class)
    private String txqAddress;

    //芙蓉区的街道
    @ExcelProperty(value = "芙蓉区", index = 1)
    private String frqAddress;

    //岳麓区的街道
    @ExcelProperty(value = "岳麓区", index = 2)
    private String ylqAddress;

    //写入excel时，忽略这个字段
    @ExcelIgnore
    private String jobAddress;

    public Address() {}

    public Address(String txqAddress, String frqAddress, String ylqAddress, String jobAddress) {
        this.txqAddress = txqAddress;
        this.frqAddress = frqAddress;
        this.ylqAddress = ylqAddress;
        this.jobAddress = jobAddress;
    }
}